#include "StdAfx.h"

#include "Display Driver Version.h"

using namespace StillDesign::NvApi;

DisplayDriverVersion::operator DisplayDriverVersion( NV_DISPLAY_DRIVER_VERSION displayDriverVersion )
{
	DisplayDriverVersion version;
		version._version = displayDriverVersion.version;
		version._driverVersion = displayDriverVersion.drvVersion;
		version._buildChangeListNumber = displayDriverVersion.bldChangeListNum;
		version._buildBranch = Functions::UnmanagedToManagedString( displayDriverVersion.szBuildBranchString );
		version._adapter = Functions::UnmanagedToManagedString( displayDriverVersion.szAdapterString );
		
	return version;
}

int DisplayDriverVersion::Version::get()
{
	return _version;
}
int DisplayDriverVersion::DriverVersion::get()
{
	return _driverVersion;
}
int DisplayDriverVersion::BuildChangeLastNumber::get()
{
	return _buildChangeListNumber;
}
String^ DisplayDriverVersion::BuildBranch::get()
{
	return _buildBranch;
}
String^ DisplayDriverVersion::Adapter::get()
{
	return _adapter;
}